﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 模板方法模式
{
    public class VipClient : Client
    {
        protected override double CalculateInterest(double balance)
        {
            return balance * 00.5;
        }


        public override void Show(string name, double balance, double interest)
        {
            Console.WriteLine($"尊贵的{name}客户，您的账户余额为：{balance},利息为{interest}");
        }
    }
}
